<!--  -->
<template lang="html">
  <div/>
</template>

<script>
export default {
    layout:'blank',
    // 使用中间件执行 
    middleware:async (ctx)=>{
        let {status,data}=await ctx.$axios.get('/users/exit')
        if (status===200&&data&&data.code===0){
            window.location.href='/'
        }
    },
    data() {
        return {
        }
    },
}

</script>
<style lang='scss' >
</style>